import request from '@/utils/request'

export function getAddress() {
  return request({
    url: '/address/getAddress',
    method: 'get'
  })
}

export function addAddress(data) {
  return request({
    url: '/address/add',
    method: 'post',
    data
  })
}

export function page(data) {
  return request({
    url: '/cart/info',
    method: 'get'
  })
}

export function deleteList(data) {
  return request({
    url: '/cart/delete',
    method: 'post',
    data
  })
}

export function upCart(data) {
  return request({
    url: '/cart/update',
    method: 'post',
    data
  })
}
// 添加订单
export function addOrders(data) {
  return request({
    url: 'order/add',
    method: 'post',
    data
  })
}
